#import <Foundation/Foundation.h>
#import "SEGUploadmultipartfileModel.h"

#if __has_include(<Commom/SEGHTTPBusinessManager.h>)
#import <Commom/SEGHTTPBusinessManager.h>
#else
#import "SEGHTTPBusinessManager.h"
#endif

@interface SEGUploadmultipartfileManager : NSObject
#pragma mark - SINGLE----BEGIN----
+(instancetype)sharedManager;//创建单例
+(void)destroyResource;//销毁单例
#pragma mark - SINGLE----END----

#pragma mark - HTTP----BEGIN----

/**
 多文件上传
 */
-(void)requestDatasWithDetailData:(NSArray<SEGUploadFileModel*>*)detailData progress:(void(^)(double progressValue))progress completed:(void(^)(BOOL isSuccessed,id result,NSString* codeType,NSString* errorMessage))completed;


/**
 多个mp3文件上传

 @author Sam
 @param data 数据源
 @param progress 上传进度
 @param completed 完成后回调
 */
-(void)requestVoicesWithData:(NSArray<NSData*>*)data progress:(void(^)(double progressValue))progress completed:(void(^)(BOOL isSuccessed,id result,NSString* codeType,NSString* errorMessage))completed;


/**
 单个mp3文件上传-默认文件名

 @author Sam
 @param data 数据源
 @param progress 上传进度
 @param completed 完成后回调
 */
-(void)requestVoiceWithData:(NSData*)data progress:(void(^)(double progressValue))progress completed:(void(^)(BOOL isSuccessed,id result,NSString* codeType,NSString* errorMessage))completed;

/**
 单个mp3文件上传-需要输入文件名格式：aaa.jpg
 
 @author Sam
 @param data 数据源
 @param fileName 文件名
 @param progress 上传进度
 @param completed 完成后回调
 */
-(void)requestVoiceWithData:(NSData*)data fileName:(NSString*)fileName progress:(void(^)(double progressValue))progress completed:(void(^)(BOOL isSuccessed,id result,NSString* codeType,NSString* errorMessage))completed;
#pragma mark - HTTP----END----

#pragma mark - SOURCE----BEGIN----
@property (nonatomic, strong) SEGUploadmultipartfileModel *uploadMultipartFile;
#pragma mark - SOURCE----END----
@end
